package com.earl.eatbao.domain.sercurity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.earl.eatbao.commons.domain.AbstractAuditingEntity;

@Entity
public class UserRole extends AbstractAuditingEntity<Long> implements Serializable {
	
    private static final long serialVersionUID = 1L;

    private Long userId;
    
    private Long roleId;
    
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "UserRole [userId=" + userId + ", roleId=" + roleId + "]";
	}

}